type github.com/gotd/td/telegram/downloader.chunk
35 uses
github.com/gotd/td/telegram/downloader (current package)
cdn_state_machine.go#L68: ) (fallback *chunk, retry bool, handled bool, outErr error) {
cdn_state_machine.go#L94: ) (*chunk, error) {
cdn_state_machine.go#L114: func() (chunk, error) {
cdn_state_machine.go#L143: func (c *cdn) Chunk(ctx context.Context, offset int64, limit int) (chunk, error) {
cdn_state_machine.go#L149: return chunk{}, err
cdn_state_machine.go#L165: return chunk{}, errors.Wrapf(err, "create CDN client for DC %d", redirectErr.Redirect.DCID)
cdn_state_machine.go#L174: return chunk{}, errors.Wrapf(err, "create CDN client for DC %d", redirectErr.Redirect.DCID)
cdn_state_machine.go#L179: return chunk{}, errors.Wrapf(err, "master chunk offset=%d limit=%d", offset, limit)
cdn_state_machine.go#L190: return chunk{}, errors.Wrapf(err, "create CDN client for DC %d", redirect.DCID)
cdn_state_machine.go#L198: return chunk{}, errors.Wrapf(err, "create CDN client for DC %d", redirect.DCID)
cdn_state_machine.go#L203: return chunk{}, errors.Wrapf(err, "cdn request plan offset=%d limit=%d", offset, limit)
cdn_state_machine.go#L219: return chunk{}, recoverErr
cdn_state_machine.go#L232: return chunk{}, errors.Wrapf(
cdn_state_machine.go#L243: return chunk{}, err
cdn_state_machine.go#L261: return chunk{}, recoverErr
cdn_state_machine.go#L274: return chunk{}, errors.Wrapf(
cdn_state_machine.go#L288: return chunk{}, errors.Errorf("unexpected type %T", result)
cdn_state_machine.go#L299: return chunk{}, err
cdn_state_machine.go#L301: return chunk{data: data, cdn: true}, nil
cdn_state_machine.go#L305: return chunk{}, retryLimitErr(ctx, RetryOperationGetFile, maxRetryAttempts, errors.New("state loop"))
client.go#L33: type chunk struct {
client.go#L42: Chunk(ctx context.Context, offset int64, limit int) (chunk, error)
master.go#L90: func (c master) Chunk(ctx context.Context, offset int64, limit int) (chunk, error) {
master.go#L102: return chunk{}, err
master.go#L107: return chunk{data: result.Bytes, tag: result.Type}, nil
master.go#L109: return chunk{}, &RedirectError{Redirect: result}
master.go#L111: return chunk{}, errors.Errorf("unexpected type %T", r)
reader.go#L14: chunk
reader.go#L150: func (r *reader) chunk(ctx context.Context, offset int64, limit int) (chunk, error) {
reader.go#L156: return chunk{}, err
reader.go#L168: func (r *reader) request(ctx context.Context, offset int64, limit int) (chunk, error) {
reader.go#L180: func requestKind(sch schema, ch chunk, err error) string {
web.go#L36: func (w web) Chunk(ctx context.Context, offset int64, limit int) (chunk, error) {
web.go#L43: return chunk{}, err
web.go#L46: return chunk{data: file.Bytes, tag: file.FileType}, nil
 |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |